<%@ page import="org.activiti.engine.repository.ProcessDefinition" %>
<%@ page import="java.util.List" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2015/9/4
  Time: 11:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>

    <h1>流程定义列表</h1>
    <table border="1">
      <tr>
        <td>流程ID</td>
        <td>流程Key</td>
        <td>流程名称</td>
        <td>版本</td>
        <td>部署ID</td>
        <td>删除</td>
        <td>启动</td>
      </tr>
    <%
      List<ProcessDefinition> processes = (List<ProcessDefinition>)request.getAttribute("processes");
      for(ProcessDefinition p:processes){
    %>
      <td><%=p.getId()%></td>
      <td><%=p.getKey()%></td>
      <td><%=p.getName()%></td>
      <td><%=p.getVersion()%></td>
      <td><%=p.getDeploymentId()%></td>
      <td><a href="process_delete?deploymentId=<%=p.getDeploymentId()%>">删除</a></td>
      <td><a href="process_start?processDefinitionId=<%=p.getId()%>">启动</a></td>

    <%}%>
    </table>
</body>
</html>
